Optimal. Leaf size=118 \[ \frac {\tanh ^{-1}(a x)^4 \log \left (2-\frac {2}{1-a x}\right )}{c}+\frac {2 \tanh ^{-1}(a x)^3 \text {PolyLog}\left (2,-1+\frac {2}{1-a x}\right )}{c}-\frac {3 \tanh ^{-1}(a x)^2 \text {PolyLog}\left (3,-1+\frac {2}{1-a x}\right )}{c}+\frac {3 \tanh ^{-1}(a x) \text {PolyLog}\left (4,-1+\frac {2}{1-a x}\right )}{c}-\frac {3 \text {PolyLog}\left (5,-1+\frac {2}{1-a x}\right )}{2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {6079, 6095,
6205, 6209, 6745} \begin {gather*} -\frac {3 \text {Li}_5\left (\frac {2}{1-a x}-1\right )}{2 c}+\frac {2 \text {Li}_2\left (\frac {2}{1-a x}-1\right ) \tanh ^{-1}(a x)^3}{c}-\frac {3 \text {Li}_3\left (\frac {2}{1-a x}-1\right ) \tanh ^{-1}(a x)^2}{c}+\frac {3 \text {Li}_4\left (\frac {2}{1-a x}-1\right ) \tanh ^{-1}(a x)}{c}+\frac {\log \left (2-\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)^4}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6079
Rule 6095
Rule 6205
Rule 6209
Rule 6745
Rubi steps
\begin {align*} \int \frac {\tanh ^{-1}(a x)^4}{x (c-a c x)} \, dx &=\frac {\tanh ^{-1}(a x)^4 \log \left (2-\frac {2}{1-a x}\right )}{c}-\frac {(4 a) \int \frac {\tanh ^{-1}(a x)^3 \log \left (2-\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{c}\\ &=\frac {\tanh ^{-1}(a x)^4 \log \left (2-\frac {2}{1-a x}\right )}{c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (-1+\frac {2}{1-a x}\right )}{c}-\frac {(6 a) \int \frac {\tanh ^{-1}(a x)^2 \text {Li}_2\left (-1+\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{c}\\ &=\frac {\tanh ^{-1}(a x)^4 \log \left (2-\frac {2}{1-a x}\right )}{c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (-1+\frac {2}{1-a x}\right )}{c}-\frac {3 \tanh ^{-1}(a x)^2 \text {Li}_3\left (-1+\frac {2}{1-a x}\right )}{c}+\frac {(6 a) \int \frac {\tanh ^{-1}(a x) \text {Li}_3\left (-1+\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{c}\\ &=\frac {\tanh ^{-1}(a x)^4 \log \left (2-\frac {2}{1-a x}\right )}{c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (-1+\frac {2}{1-a x}\right )}{c}-\frac {3 \tanh ^{-1}(a x)^2 \text {Li}_3\left (-1+\frac {2}{1-a x}\right )}{c}+\frac {3 \tanh ^{-1}(a x) \text {Li}_4\left (-1+\frac {2}{1-a x}\right )}{c}-\frac {(3 a) \int \frac {\text {Li}_4\left (-1+\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{c}\\ &=\frac {\tanh ^{-1}(a x)^4 \log \left (2-\frac {2}{1-a x}\right )}{c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (-1+\frac {2}{1-a x}\right )}{c}-\frac {3 \tanh ^{-1}(a x)^2 \text {Li}_3\left (-1+\frac {2}{1-a x}\right )}{c}+\frac {3 \tanh ^{-1}(a x) \text {Li}_4\left (-1+\frac {2}{1-a x}\right )}{c}-\frac {3 \text {Li}_5\left (-1+\frac {2}{1-a x}\right )}{2 c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 102, normalized size = 0.86 \begin {gather*} \frac {\tanh ^{-1}(a x)^4 \log \left (1-e^{2 \tanh ^{-1}(a x)}\right )}{c}+\frac {2 \tanh ^{-1}(a x)^3 \text {PolyLog}\left (2,e^{2 \tanh ^{-1}(a x)}\right )}{c}-\frac {3 \tanh ^{-1}(a x)^2 \text {PolyLog}\left (3,e^{2 \tanh ^{-1}(a x)}\right )}{c}+\frac {3 \tanh ^{-1}(a x) \text {PolyLog}\left (4,e^{2 \tanh ^{-1}(a x)}\right )}{c}-\frac {3 \text {PolyLog}\left (5,e^{2 \tanh ^{-1}(a x)}\right )}{2 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 10.68, size = 754, normalized size = 6.39
method | result | size |
derivativedivides | \(\frac {\arctanh \left (a x \right )^{4} \ln \left (a x \right )}{c}-\frac {\arctanh \left (a x \right )^{4} \ln \left (a x -1\right )}{c}+\frac {-\arctanh \left (a x \right )^{4} \ln \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )+\frac {\left (-2 i \pi \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{2}+2 i \pi \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{3}+i \pi \,\mathrm {csgn}\left (i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )\right ) \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right ) \mathrm {csgn}\left (\frac {i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )-i \pi \,\mathrm {csgn}\left (i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )\right ) \mathrm {csgn}\left (\frac {i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{2}-i \pi \,\mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right ) \mathrm {csgn}\left (\frac {i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{2}+i \pi \mathrm {csgn}\left (\frac {i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{3}+2 i \pi +2 \ln \left (2\right )\right ) \arctanh \left (a x \right )^{4}}{2}+\arctanh \left (a x \right )^{4} \ln \left (1-\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+4 \arctanh \left (a x \right )^{3} \polylog \left (2, \frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )-12 \arctanh \left (a x \right )^{2} \polylog \left (3, \frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+24 \arctanh \left (a x \right ) \polylog \left (4, \frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )-24 \polylog \left (5, \frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+\arctanh \left (a x \right )^{4} \ln \left (1+\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+4 \arctanh \left (a x \right )^{3} \polylog \left (2, -\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )-12 \arctanh \left (a x \right )^{2} \polylog \left (3, -\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+24 \arctanh \left (a x \right ) \polylog \left (4, -\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )-24 \polylog \left (5, -\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )}{c}\) | \(754\) |
default | \(\frac {\arctanh \left (a x \right )^{4} \ln \left (a x \right )}{c}-\frac {\arctanh \left (a x \right )^{4} \ln \left (a x -1\right )}{c}+\frac {-\arctanh \left (a x \right )^{4} \ln \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )+\frac {\left (-2 i \pi \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{2}+2 i \pi \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{3}+i \pi \,\mathrm {csgn}\left (i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )\right ) \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right ) \mathrm {csgn}\left (\frac {i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )-i \pi \,\mathrm {csgn}\left (i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )\right ) \mathrm {csgn}\left (\frac {i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{2}-i \pi \,\mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right ) \mathrm {csgn}\left (\frac {i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{2}+i \pi \mathrm {csgn}\left (\frac {i \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}-1\right )}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{3}+2 i \pi +2 \ln \left (2\right )\right ) \arctanh \left (a x \right )^{4}}{2}+\arctanh \left (a x \right )^{4} \ln \left (1-\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+4 \arctanh \left (a x \right )^{3} \polylog \left (2, \frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )-12 \arctanh \left (a x \right )^{2} \polylog \left (3, \frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+24 \arctanh \left (a x \right ) \polylog \left (4, \frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )-24 \polylog \left (5, \frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+\arctanh \left (a x \right )^{4} \ln \left (1+\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+4 \arctanh \left (a x \right )^{3} \polylog \left (2, -\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )-12 \arctanh \left (a x \right )^{2} \polylog \left (3, -\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )+24 \arctanh \left (a x \right ) \polylog \left (4, -\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )-24 \polylog \left (5, -\frac {a x +1}{\sqrt {-a^{2} x^{2}+1}}\right )}{c}\) | \(754\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 155, normalized size = 1.31 \begin {gather*} \frac {\log \left (\frac {2 \, a x}{a x - 1}\right ) \log \left (-\frac {a x + 1}{a x - 1}\right )^{4} + 4 \, {\rm Li}_2\left (-\frac {2 \, a x}{a x - 1} + 1\right ) \log \left (-\frac {a x + 1}{a x - 1}\right )^{3} - 12 \, \log \left (-\frac {a x + 1}{a x - 1}\right )^{2} {\rm polylog}\left (3, -\frac {a x + 1}{a x - 1}\right ) + 24 \, \log \left (-\frac {a x + 1}{a x - 1}\right ) {\rm polylog}\left (4, -\frac {a x + 1}{a x - 1}\right ) - 24 \, {\rm polylog}\left (5, -\frac {a x + 1}{a x - 1}\right )}{16 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {\int \frac {\operatorname {atanh}^{4}{\left (a x \right )}}{a x^{2} - x}\, dx}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {atanh}\left (a\,x\right )}^4}{x\,\left (c-a\,c\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________